Hook scanning and indentation functions to find_newline. This helps
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 29 Aug 2013 07:03:18 +0000 (11:03 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 29 Aug 2013 07:03:18 +0000 (11:03 +0400)
commit3e5b6fd5303ea5997578b1eb761a9605c155db36
treeba9e02798c7dd7089c967920827a6d14606fdf13
parent243dba2dd4d2c87807fcb5119eba59418a281ffa
Hook scanning and indentation functions to find_newline.  This helps
to avoid duplicated code and renders more respect to newline cache.
* lisp.h (scan_newline): Prefer ptrdiff_t to EMACS_INT.
* cmds.c (Fforward_line):
* indent.c (scan_for_column, Fcurrent_indentation, indented_beyond_p):
Use find_newline and avoid unnecessary point movements.
* search.c (scan_newline): Implement on top of find_newline.
src/ChangeLog
src/cmds.c
src/indent.c
src/lisp.h
src/search.c